package org.bdware.doip.implementation;

import org.bdware.doip.core.model.digitalObject.DigitalObject;
import org.bdware.doip.core.model.metadata.SearchParameter;
import org.bdware.doip.core.model.metadata.SearchResult;

import java.io.IOException;

public interface DoIndexer {
    boolean indexDigitalObject(DigitalObject doc) throws IOException;
    boolean indexJson(String handle, String doc) throws IOException;
    SearchResult search(SearchParameter searchParameter) throws IOException;
    boolean deleteDigitalObject(String id);
}
